#region Summary 

// 
// Owner : JackieHan 
// 
// Solution : LearnSolution
// 
// Project :JackieHan.DoNet.Ioc
// 
// File : TestEventRegister.cs
// 
// CopyRight : Copyright © 2009-2010 JackieHan Personal, All Rights Reserved 
// 
// Summary : 测试时间注册
// 
// History : 
//			2010-08-07 13:38:42	    Create 
// 

#endregion

#region Using 

using System;
using System.Collections.Generic;
using NUnit.Framework;
using Spring.Context;
using Spring.Context.Support;

#endregion

namespace JackieHan.DoNet.Ioc.Event
{
    /// <summary> 
    /// 测试时间注册
    /// </summary> 
    [TestFixture]
    public class TestEventRegister
    {
        [Test]
        public void TestEvent()
        {
            IApplicationContext context = ContextRegistry.GetContext();
            ITest test = context.GetObject("test") as ITest;
            test.OnClick();
        }
    }
}